import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MapToplistCrossHelper } from "./MapToplistCrossHelper";
type int = number;
//class SMapToplistCross
    
    export  class SMapToplistCross extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SMapToplistCross();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeDate(this.toplistDt);
            arg1.writeInt(this.copyCode);
            arg1.writeInt(this.serverId);
            arg1.writeInt(this.proxyId);
            MapToplistCrossHelper.write(arg1, this.mapToplists);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.toplistDt = arg1.readDate();
            this.copyCode = arg1.readInt();
            this.serverId = arg1.readInt();
            this.proxyId = arg1.readInt();
            this.mapToplists = MapToplistCrossHelper.read(arg1);
            return;
        }

        public /* const */_type: int=330;

        public /* var */toplistDt: Date;

        public /* var */copyCode: int;

        public /* var */serverId: int;

        public /* var */proxyId: int;

        public /* var */mapToplists: Map<any, any> /* flash.utils.Dictionary */;

        public static /* var */_regist: SMapToplistCross;
    }

            SMapToplistCross._regist = new SMapToplistCross(true);
        